<?php  
require_once "../include.php";
$act=$_REQUEST['act'];
switch($act){
	//登录
	case "login":
		dologin();
		break;
	//退出登录
	case "loginOut":
		loginOut();
		break;
	//修改密码
	case "editPassword":
		$msg=editPassword();
		break;		
	//信息配置
	case "config":
		$msg=config();
		break;
	//管理员列表
	case "managerList":
		managerList();
		break;
	//添加管理员
	case "managerAdd":
		$msg=managerAdd();
		break;
	//编辑管理员
	case "managerEdit":
		$msg=managerEdit();
		break;
	//删除管理员
	case "managerDel":
		managerDel();
		break;
	//删除多个管理员
	case "managerDels":
		managerDels();
		break;
	//部门列表
	case "departmentList":
		departmentList();
		break;
	//添加部门
	case "departmentAdd":
		$msg=departmentAdd();
		break;
	//编辑部门
	case "departmentEdit":
		$msg=departmentEdit();
		break;
	//删除部门
	case "departmentDel":
		departmentDel();
		break;
	//产品分类列表
	case "classList":
		classList();
		break;
	//添加产品分类	
	case 'cLassAdd':
		$msg=cLassAdd();
		break;
	//修改产品分类
	case 'cLassEdit':
		$msg=cLassEdit();
		break;
	//删除产品分类
	case 'classDel':
		classDel();
		break;
}
if($msg){
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>操作反馈</title>
	<link rel="stylesheet" href="vender/sui/sui.min.css">
	<link rel="stylesheet" href="css/style.css">
	<link rel="stylesheet" href="css/admin.css">
</head>
<body>
	<div class="msg-box">
		<h4><?php echo $msg ?></h4>
		<p>2秒后返回</p>
		<a href="javascript:void(0);" class="sui-btn btn-block btn-xlarge btn-info">立即返回</a>
	</div>
</body>
</html>
<script>
setTimeout(function(){
	window.history.back();
},2000);
document.getElementsByTagName('a')[0].onclick=function(){
	window.history.back();
}
</script>
<?php }?>